﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ServicesPayments
{
    public static class UIFactory
    {
        public static frmCatalogueTemplate CreateCatalogueForm<T>() where T:CatalogEntryBase
        {
            var gridForm= new frmCatalogueTemplate();
            gridForm.ProcessGridViewMetadata(typeof(T));

            return gridForm;
        }

        //public static T CreateForm<T>() where T:Form
        //{

        //}
    }
}
